package com.meilai.project.constant;

import lombok.Getter;

@Getter
public enum BuildingCorrespondingPointEnum {
    RESIDENCE(78L, new Long[]{1L}, "住宅"),
    COMPREHENSIVE_MARKET(82L, new Long[]{9L}, "市场"),
    BUILDING(79L, new Long[]{2L}, "楼宇"),
    ROAD_FAMOUS_BRAND(80L, new Long[]{3L}, "路名牌"),
    GAS_STATION(81L, new Long[]{5L, 6L, 7L}, "加油站"),
    SOFT_FILM_LAMP_BOX(83L, new Long[]{10L}, "软膜灯箱"),
    LARGE_SCREEN(84L, new Long[]{11L}, "大屏"),
    MAJOR_SUIT(85L, new Long[]{12L}, "大牌"),
    TRUSS(86L, new Long[]{13L}, "桁架");
    private Long building_type_id;
    private Long[] point_type_id;
    private String name;

    BuildingCorrespondingPointEnum(Long building_type_id, Long[] point_type_id, String name) {
        this.building_type_id = building_type_id;
        this.point_type_id = point_type_id;
        this.name = name;
    }

    public static BuildingCorrespondingPointEnum getByBuildingTypeId(Long building_type_id) {
        for (BuildingCorrespondingPointEnum item : BuildingCorrespondingPointEnum.values()) {
            if (item.getBuilding_type_id().equals(building_type_id)) {
                return item;
            }
        }
        return null;
    }
}
